package com.tfswx.ruleengine.database.bean.table;

import com.tfswx.ruleengine.database.bean.BaseTable;
import com.tfswx.ruleengine.database.bean.TabeleField;
import com.tfswx.ruleengine.database.bean.Zdlx;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ricky
 * @date 2022/3/1
 */
public class BdsTable extends BaseTable {
    @Override
    public String getTableName() {
        return "T_GZYQ_XT_BDS";
    }

    @Override
    public String getTableComment() {
        return "表达式表";
    }

    @Override
    public List<TabeleField> getFieldList() {
        List<TabeleField> bdsFieldList = new ArrayList<>();
        bdsFieldList.add(new TabeleField("BDSBM", Zdlx.CHAR, 32, true, "表达式编码"));
        bdsFieldList.add(new TabeleField("GZBM", Zdlx.CHAR, 32, false, "规则编码"));
        bdsFieldList.add(new TabeleField("BDSMC", Zdlx.VARCHAR, 10, false, "表达式名称"));
        bdsFieldList.add(new TabeleField("BDSMS", Zdlx.VARCHAR, 4000, false, "表达式描述"));
        bdsFieldList.add(new TabeleField("BDS", Zdlx.VARCHAR, 4000, false, "表达式"));
        bdsFieldList.add(new TabeleField("HCZD", Zdlx.VARCHAR, 4000, false, "核查字段"));
        bdsFieldList.add(new TabeleField("BDSLX", Zdlx.VARCHAR, 10, false, "表达式类型，1-计算、2-提示"));
        bdsFieldList.add(new TabeleField("SFSC", Zdlx.CHAR, 1, false, "是否删除"));
        bdsFieldList.add(new TabeleField("CJSJ", Zdlx.TIMESTAMP, null, false, "创建时间"));
        bdsFieldList.add(new TabeleField("ZHXGSJ", Zdlx.TIMESTAMP, null, false, "最后修改时间"));

        return bdsFieldList;
    }
}
